<script type="text/javascript">
var content = null;
$(function () {
	if(CKEDITOR.instances['content']) 
		CKEDITOR.remove(CKEDITOR.instances['content']);
	var uploadParm = {
		height:'150px',
		filebrowserBrowseUrl:'${contextPath}browse-file.html',
		filebrowserImageBrowseUrl:'${contextPath}browse-image.html',
		filebrowserUploadUrl:'${contextPath}m/parkannouncement-upload.html?type=file',
		filebrowserImageUploadUrl:'${contextPath}m/parkannouncement-upload.html?type=image',
		language:'zh-cn',
	}
	
	content = CKEDITOR.replace('content', uploadParm);
});
</script>
<#import "/freemarker/datetime.ftl" as dt>
<div class="widget" style="float:left; width:720px;">
	<div class="widget-header">
		<h3 class="title"><i class="fontello-icon-th-list-1"></i> 编辑园区公告</h3>
	</div>
	<div class="widget-content">
		<form id="editParkAnnouncementForm">
			<input type="hidden" name="rec" value="${(pa.code)!''}" />
			<input type="hidden" id="uploadFilesBtn"/>
			<table class="table boo-table table-content" style="width:100%; text-align:left;">
				<tr>
					<td class="table-left" style="width:100px;">标题</td>
					<td><input type="text" id="title" name="title" style="width:600px;" value="${(pa.title)!''}" />
						<input type="hidden" id="code" name="code" value="${(pa.code)!''}" /></td>
				</tr>
				<tr>
					<td class="table-left" style="width:100px;">发布时间</td>
					<td>
						<#if pa??>
							<@dt.dateTime name="rt" value=pa.rt width="150px"/>
						<#else>
							<@dt.dateTime name="rt"  width="130px"/>
						</#if>	
					</td>
				</tr>
				<tr>
					<td class="table-left">内容</td>
					<td><textarea id="content" style="width:600px;">${(pa.content)!''}</textarea></td>
				</tr>
				<tr>
					
					<td colspan="2" style="text-align:center;">
						<a href="javascript:;" class="btn btn-info" onclick="javascript:checkedParkAnnouncement();">
							<i class="fontello-icon-mail-4"></i>&nbsp;保&nbsp;&nbsp;存
						</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="javascript:;" class="btn btn-info" onclick="javascript:sys_load_handle('parkannouncement');">
							<i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消
						</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
